package com.lu.stack.nacos.feign.fallback;

import com.lu.stack.common.model.response.R;
import com.lu.stack.nacos.feign.FeignArticleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author zhanglu
 * @project lu-cloud-stack
 * @description
 * @date 2023/2/1 23:35
 */
@Slf4j
@Component
public class FeignArticleServiceFallback implements FeignArticleService {

    @Override
    public Object t2() {
        log.error("服务降级：t2");
        return -1;
    }

    @Override
    public R t5() {
        log.error("服务降级：t2");
        return R.failed();
    }

}
